/*
 * @Author: Pure <305737824@qq.com>
 * @CreateTime: 2021-12-21 19:13:49
 * @LastEditors: Pure <305737824@qq.com>
 * @LastEditTime: 2022-04-01 16:12:50
 * @Description: 系统设置模块路由
 */
import Layout from '@/layout';
const SystemRouter = {
  path: '/system',
  name: 'Xtsz',
  label: '系统设置',
  component: Layout,
  redirect: '/system/department',
  meta: {
    title: '系统设置',
    icon: 'system',
    add: true,
    order: 9,
  },
  children: [
    {
      path: 'department',
      name: 'XtszKsgl',
      label: '科室管理',
      component: () => import('./department/index'),
      meta: {
        title: '科室管理',
      },
    },
    {
      path: 'group',
      name: 'XtszFzgl',
      label: '分组管理',
      component: () => import('./group/index'),
      meta: {
        title: '分组管理',
      },
    },
    {
      path: 'user',
      name: 'XtszYhgl',
      label: '用户管理',
      component: () => import('./user/index'),
      meta: {
        title: '用户管理',
      },
    },
    {
      path: 'roles',
      name: 'XtszJsgl',
      label: '角色管理',
      component: () => import('./role/index'),
      meta: {
        title: '角色管理',
      },
    },
    {
      path: 'dic',
      name: 'XtszZdwh',
      label: '字典维护',
      component: () => import('./dictionary/index'),
      meta: {
        title: '字典维护',
      },
      redirect: '/system/dic/tree',
      children: [
        // {
        //   path: 'asset',
        //   name: 'XtszZdwhZclb',
        //   label: '资产类别',
        //   component: () => import('@/views/system/dictionary/children/asset'),
        //   meta: {
        //     code: 'asset',
        //     title: '资产类别',
        //   },
        // },

        {
          path: 'data',
          name: 'XtszZdwhSjzd',
          label: '数据字典',
          component: () => import('./dictionary/normal'),
          meta: {
            code: 'data',
            title: '数据字典',
          },
        },
        {
          path: 'tree',
          name: 'XtszZdwhSxzd',
          label: '树形字典',
          component: () => import('./dictionary/tree'),
          meta: {
            title: '树形字典',
          },
        },
        {
          path: 'brand',
          name: 'XtszZdwhCjpp',
          label: '厂家品牌',
          component: () => import('./dictionary/brand'),
          meta: {
            code: 'brand',
            title: '厂家品牌',
          },
        }
      ],
    }
  ],
};
export default SystemRouter;
